java.lang.Object
ddejonge.bandana.gameBuilder.MapParser
public class MapParser
extends java.lang.Object
Takes an array of strings that defines a map, according to the DAIDE format, and then allows you to obtain the Powers, Provinces and Regions
as DipGame/BANDANA objects.
- Author:
- Dave de Jonge, IIIA-CSIC
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Power>
getPowers()
java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Province>
getProvinces()
java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Region>
getRegions()
-
Method Details
-
getPowers
public java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Power> getPowers()- Returns:
- the powers
-
getProvinces
public java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Province> getProvinces()- Returns:
- the provinces
-
getRegions
public java.util.Map<java.lang.String,es.csic.iiia.fabregues.dip.board.Region> getRegions()- Returns:
- the regions
-